package cn.com.surker.weight.entity;

import cn.com.surker.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 过磅仓位状态
 * </p>
 *
 * @author admin
 * @since 2025-05-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WeightStorageInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公司ID
     */
    private Long orgId;

    /**
     * 公司名称
     */
    private String orgName;

    /**
     * 仓位ID
     */
    private Long storageId;

    /**
     * 仓位名称
     */
    private String storage;

    /**
     * 材料ID
     */
    private Long materialId;

    /**
     * 材料名称
     */
    private String material;
    /**
     * 过磅订单号
     */
    private String orderId;

    /**
     * 库存量
     */
    private Double store;

    /**
     * 最大容量
     */
    private Double maxStore;

    /**
     * 阀门状态(0:空闲1:开启,2:关闭,3:上料中)
     */
    private Integer doorStatus;

    /**
     * 操作状态(0:无操作1:变更)
     */
    private Integer operationStatus;

    /**
     * 仓位寄存地址
     */
    private String deposit;
    public WeightStorageInfo(){}
    public WeightStorageInfo(Long orgId, String orgName, Long storageId, String storage, Long materialId, String material, Double store, Double maxStore, Integer doorStatus, Integer operationStatus, String deposit) {
        this.orgId = orgId;
        this.orgName = orgName;
        this.storageId = storageId;
        this.storage = storage;
        this.materialId = materialId;
        this.material = material;
        this.store = store;
        this.maxStore = maxStore;
        this.doorStatus = doorStatus;
        this.operationStatus = operationStatus;
        this.deposit = deposit;
    }
}
